import axios from "../../utils/http";
//库管流转版新增工单
export function NewLIUZHUANcreate(data) {
  return axios({
    url: "/NewLIUZHUAN/create",
    method: "POST",
    data: data,
  });
}
//删除工单
export function NewLIUZHUANdelete(data) {
  return axios({
    url: "/NewLIUZHUAN/delete",
    method: "DELETE",
    params: data,
  });
}
//修改工单
export function NewLIUZHUANupdate(data) {
  return axios({
    url: "/NewLIUZHUAN/update",
    method: "PUT",
    data: data,
  });
}
//查库存，流转版本
export function NewLIUZHUANget2(params) {
  return axios({
    url: "/NewLIUZHUAN/get2",
    method: "GET",
    params: params,
  });
}
//查询新版的库管流转--查工单
export function NewLIUZHUANget(params) {
  return axios({
    url: "/NewLIUZHUAN/get",
    method: "GET",
    params: params,
  });
}
// 新工艺
export function CraftgetAll(params) {
  return axios({
    url: "/NewCraft/get",
    method: "GET",
    data: params,
  });
}
export function Craftcreate(params) {
  return axios({
    url: "/NewCraft/create",
    method: "POST",
    data: params,
  });
}
export function Craftupdata(params) {
  return axios({
    url: "/NewCraft/update",
    method: "PUT",
    data: params,
  });
}
export function Craftdelete(params) {
  return axios({
    url: "/NewCraft/delete",
    method: "DELETE",
    params: params,
  });
}
//新增库存单位
export function NewLIUZHUANcreateKc(data) {
  return axios({
    url: "/NewLIUZHUAN/createKc",
    method: "POST",
    data: data,
  });
}
